home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7066 < prev    next >
Encoding:
Text File  |  1996-08-05  |  751 b   |  33 lines

  1. Path: fu.bekkoame.or.jp!usenet
  2. From: Giles Goddard <giles@fumin.nintendo.co.jp>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: calling a function in library compiled with C
  5. Date: Wed, 21 Feb 1996 16:38:57 +0900
  6. Organization: Nintendo Co. Ltd. (Japan)
  7. Message-ID: <312ACC11.446B@fumin.nintendo.co.jp>
  8. References: <SAI.96Feb20154709@jasmine.okilab.oki.co.jp>
  9. NNTP-Posting-Host: osk0072.bekkoame.or.jp
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-2022-jp
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP22)
  14.  
  15. > Cui Jin wrote:
  16.  
  17. > a problem with calling C routines from C++
  18.  
  19.  
  20. Try putting this in your header file:
  21.  
  22. extern "C" {
  23.         int cbopen(char *);
  24. }
  25.  
  26.  
  27.  
  28. it tells the compiler that 'cbopen' has C linkage.
  29.  
  30.  
  31. cheers,
  32. giles
  33.